package com.hb.trade.server.project.section.service.raw;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hb.core.pojo.parent.PageResult;
import com.hb.core.pojo.project.section.dto.ClarifyConfirmDTO;
import com.hb.core.pojo.project.section.dto.ClarifyDTO;
import com.hb.core.pojo.project.section.entity.ClarifyConfirm;
import java.util.List;

/**
 * <p>
 * 澄清确认表 服务类
 * </p>
 *
 * @author admin
 * @since 2021-10-09
 */
public interface ClarifyConfirmService extends IService<ClarifyConfirm> {
    /**
     * 查询确认和未确认的总数以及总数
     *
     * @param clarifyId 澄清ID
     * @param confirmFlag 1 已确认的个数 2 未确认的个人  其他是总数
     * @return
     */
    int findStatusCount(Long clarifyId, Integer confirmFlag);
    /**
     * @param clarifyDTO:
     * @Description:查询澄清回执列表
     * @Author: zhongdl
     * @Date:2022/5/20 11:40
     * @return: {@link com.hb.core.pojo.parent.PageResult<com.hb.core.pojo.project.section.dto.ClarifyConfirmDTO> }
     **/
    PageResult<ClarifyConfirmDTO> pageClarifyConfirm(ClarifyDTO clarifyDTO);

     /**
      * @param clarifyId:澄清id
      * @param tenderId:供应商id
      * @Description:查询投标人 澄清的数量
      * @Author: zhongdl
      * @Date:2022/5/23 10:20

      * @return: {@link int }
      **/
    int getCountConfirmFlag(Long clarifyId,Long tenderId);
}
